package fr.gla.hibtracker.historique.bo;

import org.hibernate.event.FlushEntityEvent;
import org.hibernate.event.FlushEvent;

import fr.gla.hibtracker.historique.bs.UserResolver;

/**
 * Implémentation de {@link UserResolver} renvoyant <code>"Inconnu"</code>.
 *
 */
public class UnknownUserResolver implements UserResolver {

    /**
     * Renvoie <code>"Inconnu"</code>.
     * @see fr.gla.hibtracker.historique.bs.UserResolver#resolve(org.hibernate.event.FlushEvent)
     */
    public String resolve(FlushEvent event) {
        return "Inconnu";
    }

    /**
     * Renvoie <code>"Inconnu"</code>.
     * @see fr.gla.hibtracker.historique.bs.UserResolver#resolve(org.hibernate.event.FlushEntityEvent)
     */
    public String resolve(FlushEntityEvent event) {
        return "Inconnu";
    }

}
